
from math import sqrt

def triangle_num():
    i = 0
    o = 1
    while True:
        i += o
        o += 1
        yield i

def divisor_count(i):
    c = 0
    for d in range(1, int(sqrt(i))):
        if i % d == 0:
            c += 1
    return c

for i in triangle_num():
    c = divisor_count(i)
    if c >= 250:
        print i, c